import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import Login from '../views/login.vue'
import Registry from '../views/registry.vue'
import Sign from '../views/sign.vue'

Vue.use(VueRouter)

const routes = [
    {
        path: '/home',
        name: 'Home',
        component: Home
    },
    {
        path:'/login',
        component:Login
    },
    {
        path:'/sign',
        component:Sign
    },
    {
        path:'/registry',
        component:Registry
    }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
